//app.js
import util from 'we7/resource/js/util.js';
App({
  util: util,
  onLaunch: function () {
    var userinfo = wx.getStorageSync('userInfo');
    if (userinfo == '') {
      wx.reLaunch({
        url: '/weidun_card/pages/login/login'
      })
    }
  },
  onShow: function () {
  },
  onHide: function () {
  },
  onError: function (msg) {
    console.log(msg)
  },
  globalData: {
    userInfo: null,
  },
  siteInfo: require('siteinfo.js')
});